import Cookies from 'js-cookie'

const jqkit = {
  state: {
    menuSwitchStatus: Cookies.get('menuSwitchStatus') ? !!+Cookies.get('menuSwitchStatus') : false,
  },

  mutations: {
    SET_MENU_SWITCH_STATUS: (state, status) => {
      state.menuSwitchStatus = status;

      Cookies.set('menuSwitchStatus', status ? 1 : 0);
    }
  },

  actions: {
  }
}

export default jqkit